import request from '@/config/request'

// 获得请假分页
export const getAskForLeaveListApi = (data) => {
  return request.get('/app-api/system/app/ask-for-leave/page', data)
}

// 创建请假
export const createAskForLeaveApi = (data) => {
  return request.post('/app-api/system/app/ask-for-leave/create', data)
}

// 获取请假详情
export const getAskForLeaveDetailApi = (data) => {
  return request.get('/app-api/system/app/ask-for-leave/get', data)
}
